package com.junwei.smsdemo.util;

import com.junwei.smsdemo.exception.BaseException;
import com.junwei.smsdemo.vo.R;

/**
 * @author 王军伟
 * @date 2020/5/20 下午7:51
 * @desc
 */
public class AssertUtil {
    public static void isNull(Object object, R codeAndMessage) {
        if (null == object) {
            throw new BaseException(codeAndMessage, "");
        }
    }
}
